/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package dnbW.dbW.sucxentdbW;

/**
 *
 * @author truongbaquan
 */
public class Identifier {
    private int docId;

    public int getDocId() {
        return docId;
    }

    private long ancestorDeweyGroup;

    public long getAncestorDeweyGroup() {
        return ancestorDeweyGroup;
    }

    public Identifier(int docId, long ancestorDeweyGroup) {
        this.docId = docId;
        this.ancestorDeweyGroup = ancestorDeweyGroup;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Identifier other = (Identifier) obj;
        if (this.docId != other.docId) {
            return false;
        }
        if (this.ancestorDeweyGroup != other.ancestorDeweyGroup) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 89 * hash + this.docId;
        hash = 89 * hash + (int) (this.ancestorDeweyGroup ^ (this.ancestorDeweyGroup >>> 32));
        return hash;
    }
}
